package dyyx.dto;

import java.time.LocalDateTime;

import javax.management.MBeanServerConnection;
import javax.management.remote.JMXConnector;

public class JmxClient{

	public final JMXConnector jmxConnector;
	public final MBeanServerConnection mbeanServerConnection;
	public final String name;
	public final String connectString;
	
	public final String createTime = LocalDateTime.now().toString();

	
	public JmxClient(JMXConnector jmxConnector,MBeanServerConnection mbeanServerConnection,String name,String connectString){
		this.jmxConnector = jmxConnector;
		this.mbeanServerConnection = mbeanServerConnection;
		this.name=name;
		this.connectString = connectString;
	}
	
	public void close()throws Exception{
		jmxConnector.close();
	}
	
	

}
